Enum isotope::error::Error[][src]

pub enum Error {
Show variants HasDependency, ExpectedAnnot, InconsistentTyck, VarAnnotMismatch, AnnotMismatch, ExpectedTerm, ExpectedPi, ExpectedType, ExpectedUniverse, ExpectedFunction, ExpectedRefl, OutOfGas, StopReduction, AnnotationRequired, ParameterUnderflow, ParameterOverflow, TypeMismatch, TypeUnificationFailure, SubtypeMismatch, TermMismatch, TermUnificationFailure, UntypedParameter, UntypedConstraint, CannotInfer, UndefinedSymbol, NotImplemented, UniverseOutOfBounds, CoerceUntyped, InferenceFailure, CannotMatch, IndexOutOfBounds,
}
Expand description

An error which may occur manipulating isotope terms

Variants

HasDependency

Attempted to substitute away a dependency

ExpectedAnnot

Expected an annotation

InconsistentTyck

Inconsistent type-check flag

VarAnnotMismatch

A variable annotation mismatch

AnnotMismatch

A general annotation mismatch

ExpectedTerm

Expected a term

ExpectedPi

Expected a dependent function type

ExpectedType

Expected a type

ExpectedUniverse

Expected a universe

ExpectedFunction

Expected a function

ExpectedRefl

Expected a reflexivity instance

OutOfGas

Function took too many steps to evaluate

StopReduction

Stop the current reduction

AnnotationRequired

A type annotation is required

ParameterUnderflow

Parameter underflow

ParameterOverflow

Parameter overflow

TypeMismatch

A type mismatch

TypeUnificationFailure

Failed to unify types

SubtypeMismatch

A subtype mismatch

TermMismatch

A term mismatch

TermUnificationFailure

Failed to unify terms

UntypedParameter

An untyped parameter

UntypedConstraint

An untyped constraint

CannotInfer

Cannot infer a value

UndefinedSymbol

An undefined symbol

NotImplemented

Unimplemented functionality

UniverseOutOfBounds

Universe out of bounds

CoerceUntyped

Attempted to coerce an untyped term

InferenceFailure

A potentially recoverable inference failure.

CannotMatch

A type cannot be matched

IndexOutOfBounds

An index out of bounds

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Borrow an optional value of type T

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.